package com.example.leetcode.string;

import com.example.leetcode.string.common.StringUtils;

class Solution2399 {
    public boolean checkDistances(String s, int[] distance) {
        return StringUtils.checkDistances(s, distance);
    }
}

public class leetcode2399 {
    public static void main(String[] args) {
        Solution2399 solution2399 = new Solution2399();
        int[] distance = {1, 3, 0, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
        System.out.println(solution2399.checkDistances("abaccb", distance));
    }
}
